.class public Lcom/jecelyin/editor/v2/utils/g;
.super Ljava/lang/Object;
.source "SL4AIntentBuilders.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jecelyin/editor/v2/utils/g$a;
    }
.end annotation


# direct methods
.method public static a(Ljava/io/File;)Landroid/content/Intent;
    .locals 2

    .line 1
    sget-object v0, Lcom/jecelyin/editor/v2/utils/g$a;->a:Landroid/content/ComponentName;

    .line 2
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 3
    invoke-virtual {v1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    const-string v0, "com.googlecode.android_scripting.action.LAUNCH_BACKGROUND_SCRIPT"

    .line 4
    invoke-virtual {v1, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 5
    invoke-virtual {p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    const-string v0, "com.googlecode.android_scripting.extra.SCRIPT_PATH"

    invoke-virtual {v1, v0, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    return-object v1
.end method

.method public static b(Ljava/io/File;)Landroid/content/Intent;
    .locals 2

    .line 1
    sget-object v0, Lcom/jecelyin/editor/v2/utils/g$a;->a:Landroid/content/ComponentName;

    .line 2
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 3
    invoke-virtual {v1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    const-string v0, "com.googlecode.android_scripting.action.LAUNCH_FOREGROUND_SCRIPT"

    .line 4
    invoke-virtual {v1, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 5
    invoke-virtual {p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    const-string v0, "com.googlecode.android_scripting.extra.SCRIPT_PATH"

    invoke-virtual {v1, v0, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    return-object v1
.end method
